package com.msmall.community.wish.dao;

import java.util.List;

import com.msmall.base.dao.BaseDao;
import com.msmall.community.wish.model.WishType;

public interface WishDao extends BaseDao{
	
	/**
	 * 通过类型名称查找类型
	 */
	public WishType loadByName(String name) throws Exception;
	
	/**
	 * 获得心愿类型<br/>
	 * enabled = ConstantDB.AVALIABLE / ConstantDB.UNAVALIBLE<br/>
	 * enabled == null 取全部
	 */
	public List<WishType> getWishTypes(Short enabled) throws Exception;
	
}
